.class public Les/rf;
.super Les/nf;
.source "SimilarImageGroupFilter.java"


# instance fields
.field private final e:J

.field private final f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/fg;",
            ">;"
        }
    .end annotation
.end field

.field private final g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/util/Set<",
            "Les/fg;",
            ">;>;"
        }
    .end annotation
.end field

.field private h:I

.field private i:J

.field private final j:Ljava/util/Comparator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Comparator<",
            "Les/fg;",
            ">;"
        }
    .end annotation
.end field

.field private final k:Ljava/util/Comparator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Comparator<",
            "Les/hg;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Les/nf;-><init>()V

    .line 2
    new-instance v0, Les/rf$a;

    invoke-direct {v0, p0}, Les/rf$a;-><init>(Les/rf;)V

    iput-object v0, p0, Les/rf;->j:Ljava/util/Comparator;

    .line 3
    new-instance v0, Les/rf$b;

    invoke-direct {v0, p0}, Les/rf$b;-><init>(Les/rf;)V

    iput-object v0, p0, Les/rf;->k:Ljava/util/Comparator;

    const-wide/16 v0, 0x0

    .line 4
    iput-wide v0, p0, Les/rf;->i:J

    const/4 v0, 0x0

    .line 5
    iput v0, p0, Les/rf;->h:I

    .line 6
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Les/rf;->f:Ljava/util/List;

    .line 7
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Les/rf;->g:Ljava/util/List;

    const-wide/32 v0, 0x4b000

    .line 8
    iput-wide v0, p0, Les/rf;->e:J

    return-void
.end method


# virtual methods
.method public final declared-synchronized a(I)Les/nf$b;
    .locals 4

    monitor-enter p0

    .line 47
    :try_start_0
    iget v0, p0, Les/rf;->h:I

    if-le p1, v0, :cond_0

    .line 48
    iget p1, p0, Les/rf;->h:I

    :cond_0
    if-lez p1, :cond_2

    .line 49
    iget-object p1, p0, Les/rf;->g:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_1

    goto :goto_0

    .line 50
    :cond_1
    new-instance p1, Ljava/util/ArrayList;

    iget-object v0, p0, Les/rf;->g:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Collection;

    invoke-direct {p1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 51
    new-instance v0, Les/nf$b;

    iget v1, p0, Les/rf;->h:I

    iget-wide v2, p0, Les/rf;->i:J

    invoke-direct {v0, p1, v1, v2, v3}, Les/nf$b;-><init>(Ljava/util/List;IJ)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    .line 52
    :cond_2
    :goto_0
    :try_start_1
    new-instance p1, Les/nf$b;

    invoke-direct {p1}, Les/nf$b;-><init>()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public a()V
    .locals 14

    .line 1
    const-class v0, Les/rf;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "finish!"

    invoke-static {v1, v2}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget-object v1, p0, Les/rf;->f:Ljava/util/List;

    iget-object v2, p0, Les/rf;->k:Ljava/util/Comparator;

    invoke-static {v1, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 3
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 4
    iget-object v2, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const-wide/16 v3, 0x0

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/fg;

    .line 5
    invoke-virtual {v5}, Les/hg;->c()J

    move-result-wide v6

    cmp-long v8, v6, v3

    if-eqz v8, :cond_0

    .line 6
    invoke-virtual {v5}, Les/hg;->c()J

    move-result-wide v3

    goto :goto_0

    .line 7
    :cond_0
    invoke-interface {v1, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 8
    :cond_1
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/fg;

    .line 9
    iget-object v3, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v3, v2}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    goto :goto_1

    .line 10
    :cond_2
    iget-object v1, p0, Les/rf;->f:Ljava/util/List;

    iget-object v2, p0, Les/rf;->j:Ljava/util/Comparator;

    invoke-static {v1, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    const/4 v1, 0x0

    const/4 v2, 0x1

    const/4 v3, 0x0

    const/4 v4, 0x1

    .line 11
    :goto_2
    iget-object v5, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    sub-int/2addr v5, v2

    if-ge v3, v5, :cond_8

    .line 12
    iget-object v5, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v5, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/fg;

    invoke-virtual {v5}, Les/fg;->h()J

    move-result-wide v5

    .line 13
    iget-object v7, p0, Les/rf;->f:Ljava/util/List;

    add-int/lit8 v8, v3, 0x1

    invoke-interface {v7, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/fg;

    invoke-virtual {v7}, Les/fg;->h()J

    move-result-wide v9

    sub-long v9, v5, v9

    .line 14
    iget-object v7, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/fg;

    invoke-virtual {v7}, Les/fg;->i()I

    move-result v7

    .line 15
    iget-object v11, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v11, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Les/fg;

    invoke-virtual {v11}, Les/fg;->i()I

    move-result v11

    sub-int/2addr v7, v11

    .line 16
    iget-object v11, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v11, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Les/fg;

    invoke-virtual {v11}, Les/fg;->g()I

    move-result v11

    .line 17
    iget-object v12, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v12, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Les/fg;

    invoke-virtual {v12}, Les/fg;->g()I

    move-result v12

    sub-int/2addr v11, v12

    if-ne v7, v11, :cond_3

    if-nez v7, :cond_3

    const/4 v7, 0x1

    goto :goto_3

    :cond_3
    const/4 v7, 0x0

    .line 18
    :goto_3
    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v11

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    const-string v13, "t1:"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v5, "/"

    invoke-virtual {v12, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v9, v10}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v11, v5}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    const-wide/16 v5, 0x3e8

    cmp-long v11, v9, v5

    if-gez v11, :cond_7

    if-eqz v7, :cond_7

    if-eqz v4, :cond_4

    .line 19
    new-instance v4, Ljava/util/HashSet;

    invoke-direct {v4}, Ljava/util/HashSet;-><init>()V

    .line 20
    iget-object v5, p0, Les/rf;->g:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_4

    .line 21
    :cond_4
    iget-object v4, p0, Les/rf;->g:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    sub-int/2addr v4, v2

    .line 22
    iget-object v5, p0, Les/rf;->g:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/Set;

    .line 23
    :goto_4
    iget-object v5, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v5, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    invoke-interface {v4, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 24
    iget-wide v5, p0, Les/rf;->i:J

    iget-object v7, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/fg;

    invoke-virtual {v3}, Les/hg;->c()J

    move-result-wide v9

    add-long/2addr v5, v9

    iput-wide v5, p0, Les/rf;->i:J

    .line 25
    iget v3, p0, Les/rf;->h:I

    add-int/2addr v3, v2

    iput v3, p0, Les/rf;->h:I

    .line 26
    :cond_5
    iget-object v3, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v3, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    invoke-interface {v4, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 27
    iget-wide v3, p0, Les/rf;->i:J

    iget-object v5, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v5, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/fg;

    invoke-virtual {v5}, Les/hg;->c()J

    move-result-wide v5

    add-long/2addr v3, v5

    iput-wide v3, p0, Les/rf;->i:J

    .line 28
    iget v3, p0, Les/rf;->h:I

    add-int/2addr v3, v2

    iput v3, p0, Les/rf;->h:I

    :cond_6
    const/4 v4, 0x0

    goto :goto_5

    :cond_7
    const/4 v4, 0x1

    :goto_5
    move v3, v8

    goto/16 :goto_2

    .line 29
    :cond_8
    iget-object v0, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    return-void
.end method

.method public a(Les/we;)V
    .locals 10

    .line 53
    invoke-virtual {p1}, Les/we;->a()[Les/bg;

    move-result-object p1

    array-length v0, p1

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_5

    aget-object v2, p1, v1

    .line 54
    instance-of v3, v2, Les/fg;

    if-eqz v3, :cond_4

    .line 55
    invoke-virtual {v2}, Les/hg;->c()J

    move-result-wide v3

    iget-wide v5, p0, Les/rf;->e:J

    cmp-long v7, v3, v5

    if-gez v7, :cond_0

    goto :goto_1

    .line 56
    :cond_0
    check-cast v2, Les/fg;

    .line 57
    invoke-virtual {v2}, Les/fg;->h()J

    move-result-wide v3

    const-wide/16 v5, 0x0

    cmp-long v7, v3, v5

    if-nez v7, :cond_1

    goto :goto_1

    .line 58
    :cond_1
    invoke-virtual {v2}, Les/fg;->h()J

    move-result-wide v3

    invoke-virtual {v2}, Les/bg;->e()J

    move-result-wide v7

    cmp-long v9, v3, v7

    if-nez v9, :cond_2

    invoke-virtual {v2}, Les/fg;->h()J

    move-result-wide v3

    const-wide/16 v7, 0x3e8

    rem-long/2addr v3, v7

    cmp-long v7, v3, v5

    if-nez v7, :cond_2

    goto :goto_1

    .line 59
    :cond_2
    invoke-virtual {v2}, Les/bg;->f()Ljava/lang/String;

    move-result-object v3

    .line 60
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_4

    const-string v4, ".gif"

    .line 61
    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    goto :goto_1

    .line 62
    :cond_3
    iget-object v3, p0, Les/rf;->f:Ljava/util/List;

    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_4
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_5
    return-void
.end method

.method public declared-synchronized a(Ljava/util/List;)Z
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/hg;",
            ">;)Z"
        }
    .end annotation

    monitor-enter p0

    .line 30
    :try_start_0
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_3

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/hg;

    .line 31
    iget-object v2, p0, Les/rf;->g:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Set;

    const/4 v4, 0x0

    .line 32
    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_1
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_2

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Les/fg;

    .line 33
    invoke-virtual {v6, v0}, Les/hg;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 34
    iget v4, p0, Les/rf;->h:I

    sub-int/2addr v4, v1

    iput v4, p0, Les/rf;->h:I

    .line 35
    iget-wide v4, p0, Les/rf;->i:J

    invoke-virtual {v6}, Les/hg;->c()J

    move-result-wide v7

    sub-long/2addr v4, v7

    iput-wide v4, p0, Les/rf;->i:J

    move-object v4, v6

    .line 36
    :cond_2
    invoke-interface {v3, v4}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    goto :goto_0

    .line 37
    :cond_3
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 38
    iget-object v0, p0, Les/rf;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_4
    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Set;

    .line 39
    invoke-interface {v2}, Ljava/util/Set;->size()I

    move-result v3

    const/4 v4, 0x2

    if-ge v3, v4, :cond_4

    .line 40
    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_2
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_5

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/fg;

    .line 41
    iget v5, p0, Les/rf;->h:I

    sub-int/2addr v5, v1

    iput v5, p0, Les/rf;->h:I

    .line 42
    iget-wide v5, p0, Les/rf;->i:J

    invoke-virtual {v4}, Les/hg;->c()J

    move-result-wide v7

    sub-long/2addr v5, v7

    iput-wide v5, p0, Les/rf;->i:J

    goto :goto_2

    .line 43
    :cond_5
    invoke-interface {p1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 44
    :cond_6
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_3
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Set;

    .line 45
    iget-object v2, p0, Les/rf;->g:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_3

    .line 46
    :cond_7
    monitor-exit p0

    return v1

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public final d()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/util/Set<",
            "Les/fg;",
            ">;>;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/rf;->g:Ljava/util/List;

    return-object v0
.end method
